﻿using Abp.Domain.Entities;
using Abp.Domain.Repositories;
using GN.Framework.Domain.Repositories;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GN.Pay.Core.Repositories
{
    /// <summary>
    /// 支付仓储
    /// </summary>
    public interface IPayRepository<TEntity, TPrimaryKey> : IGNRepository<TEntity, TPrimaryKey> where TEntity : class, IEntity<TPrimaryKey>
    {
        /// <summary>
        /// 设置实体状态
        /// </summary>
        /// <param name="entity">实体</param>
        /// <param name="entityState">实体状态</param>
        void SetEntityState(TEntity entity, int entityState);
    }

    /// <summary>
    /// 支付仓储
    /// </summary>
    /// <typeparam name="TEntity">实体类型</typeparam>
    public interface IPayRepository<TEntity> : IPayRepository<TEntity, int> where TEntity : class, IEntity<int>
    {

    }
}
